<h1>Promocaos List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Data inicio</th>
      <th>Data fim</th>
      <th>Descricao</th>
      <th>Preco promo unit</th>
      <th>Produto</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($promocaos as $promocao): ?>
    <tr>
      <td><a href="<?php echo url_for('promocao/show?id='.$promocao->getId()) ?>"><?php echo $promocao->getId() ?></a></td>
      <td><?php echo $promocao->getDataInicio() ?></td>
      <td><?php echo $promocao->getDataFim() ?></td>
      <td><?php echo $promocao->getDescricao() ?></td>
      <td><?php echo $promocao->getPrecoPromoUnit() ?></td>
      <td><?php echo $promocao->getProdutoId() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('promocao/new') ?>">New</a>
